package com.ruoyi.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.order.domain.GoodsOrderGoodsInfo;

import java.util.List;

/**
 * 卖品订单卖品信息Mapper接口
 *
 * @author HHAOYU
 * @date 2021-01-16
 */
public interface GoodsOrderGoodsInfoMapper extends BaseMapper<GoodsOrderGoodsInfo> {
    /**
     * 查询卖品订单卖品信息
     *
     * @param id 卖品订单卖品信息ID
     * @return 卖品订单卖品信息
     */
    public GoodsOrderGoodsInfo selectGoodsOrderGoodsInfoById(Long id);

    /**
     * 查询卖品订单卖品信息列表
     *
     * @param goodsOrderGoodsInfo 卖品订单卖品信息
     * @return 卖品订单卖品信息集合
     */
    public List<GoodsOrderGoodsInfo> selectGoodsOrderGoodsInfoList(GoodsOrderGoodsInfo goodsOrderGoodsInfo);

    /**
     * 新增卖品订单卖品信息
     *
     * @param goodsOrderGoodsInfo 卖品订单卖品信息
     * @return 结果
     */
    public int insertGoodsOrderGoodsInfo(GoodsOrderGoodsInfo goodsOrderGoodsInfo);

    /**
     * 修改卖品订单卖品信息
     *
     * @param goodsOrderGoodsInfo 卖品订单卖品信息
     * @return 结果
     */
    public int updateGoodsOrderGoodsInfo(GoodsOrderGoodsInfo goodsOrderGoodsInfo);

    /**
     * 删除卖品订单卖品信息
     *
     * @param id 卖品订单卖品信息ID
     * @return 结果
     */
    public int deleteGoodsOrderGoodsInfoById(Long id);

    /**
     * 批量删除卖品订单卖品信息
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteGoodsOrderGoodsInfoByIds(Long[] ids);
}
